﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Doves.DataAccessLayer;
using Doves.Utilities;

namespace Doves.BussinessLayer
{
    public class ArticleBO : BaseBO
    {
        public IEnumerable<Article> GetAllArticle()
        {
            return _dao.Article.GetAllArticle();
        }
        public Article GetArticleById(int Id)
        {
            return _dao.Article.GetArticleById(Id);
        }
        public bool UpdateArticle(Article inArticle)
        {
            return _dao.Article.UpdateArticle(inArticle);
        }
        public bool InsertArticle(Article inArticle)
        {
            return _dao.Article.InsertArticle(inArticle);
        }
        public ReturnValue<bool> DelArticle(int inId)
        {
            return _dao.Article.DelArticle(inId);
        }
        public ReturnValue<bool> DelArticle(Article inArticle)
        {
            return _dao.Article.DelArticle(inArticle);
        }
    }
}
